package cn.tedu.autoshow.passport.service;

import cn.tedu.autoshow.commons.pojo.vo.PageData;
import cn.tedu.autoshow.passport.pojo.entity.RolePermission;
import cn.tedu.autoshow.passport.pojo.param.PermissionAddNewParam;
import cn.tedu.autoshow.passport.pojo.param.PermissionUpdateParam;
import cn.tedu.autoshow.passport.pojo.vo.PermissionListItemVO;
import cn.tedu.autoshow.passport.pojo.vo.PermissionStandardVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IRolePermissionService {

    void insertsRolePermissionByRoleId(Long roleId,Long[] permissionIds);

    void insertsRolePermissionByPermissionId(Long permissionId,Long[] roleIds);

    void deletePermissionByRole(Long roleId,Long[] permissionIds);

    void deleteRoleByPermission(Long permissionId,Long[] roleIds);

    List<Long> permissionListByRoleId(Long roleId);

    List<Long> roleListByPermissionId(Long permissionId);

}
